div{
    width: 400px;
    height: 400px;
    background-color: red;
    position: relative;
    margin: 0 auto;
}
img:nth-child(2){
    float: right;
}
.b2{
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%,-50%);
}
.b2 img{
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%,-50%);
}
img:nth-child(4){
    position: absolute;
    bottom: 0;
    left: 0;
}
img:nth-child(5){
    position: absolute;
    bottom: 0;
    right: 0;
}
